package com.jic.member.service.power;

import com.jic.common.base.vo.Page;
import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.market.request.manager.goods.GoodsSpuPageQueryRequest;
import com.jic.member.entity.power.MepowerProduct;
import com.jic.member.request.power.MepowerProductRequest;
import com.jic.product.after.request.GoodsPageQueryRequest;

import java.lang.Long;
import java.util.List;


/**
* 权益商品关联表
* @author : zxl
* @email : 
* @since : 2020-05-11 02:45:38
* @version : v1.0.0
*/
public interface MepowerProductService {

    long insert(MepowerProduct mepowerProduct);

    long delete(Long id);

    long update(MepowerProduct mepowerProduct);

    MepowerProduct queryByPrimaryKey(Long id);

    List<MepowerProduct> query(MepowerProduct mepowerProduct);

    PageResult<MepowerProduct> queryPage(MepowerProduct mepowerProduct, Page pageQuery);

    List<Long> queryStoreIds(MepowerProductRequest form);

    Long saveProduct(MepowerProductRequest request);

    RestResult querySpuPage(MepowerProductRequest request);

    void deletePowerProduct(MepowerProductRequest form);

    void deletePowerProductsByBatch(MepowerProductRequest form);

    Long addAllProduct(MepowerProductRequest request);
}